package 进阶.线程.多线程;

public class demo05_Sleep {
    public static void main(String[] args) {
        for (int i = 1; i < 10; i++) {
            System.out.println(i);

            try {
                //sleep是静态方法可以直接通过类名调用
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }
    }
}
